#pragma once
#include <QAbstractTableModel>
#include <QObject>

namespace monitor
{

    class MonitorInterModel : public QAbstractTableModel
    {
        Q_OBJECT

    public:
        explicit MonitorInterModel(QObject *parent = nullptr)
            : QAbstractTableModel(parent) {}

        // 重写 data 方法, 自定义单元格的显示
        QVariant data(const QModelIndex &index,
                      int role = Qt::DisplayRole) const override;

        // 重写 headerData 方法, 自定义表头的显示
        QVariant headerData(int section, Qt::Orientation orientation,
                            int role) const override;
        virtual ~MonitorInterModel() {}
    };

} // namespace monitor